package com.macro.mall.portal.dao;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.macro.mall.portal.domain.Partner;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 * 合伙人申请记录表 Mapper 接口
 * </p>
 *
 * @author  
 * @since 2021-09-11
 */
public interface PartnerMapper extends BaseMapper<Partner> {

    @Select("select create_time from partner where date(create_time) = date_sub(curdate(),interval 1 day); ")
    List<Partner> getAll();

}
